package 线性表;
import java.util.*;
public class selistrest1  {
    public static void main(String[] args) {
        SequenceList<String> s1 = new SequenceList<>(10);
        s1.insert("yaoming");
        s1.insert("kebi");
        s1.insert("maidi");
        s1.insert("zhanmusi");
        for(String s:s1){
            System.out.println(s);
        }
        System.out.println("_____________________");
        Iterator it = s1.iterator();
        while(it.hasNext()){
            System.out.println(it.next());
        }
        String getResutt=s1.get(0);
        System.out.println(getResutt);
        String removeResurt=s1.remove(0);
        System.out.println(removeResurt);
        s1.clear();
        System.out.println(s1.length());

    }
}
